/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.src.business;

import com.src.dao.Itf_Dao_Persona;
import com.src.pojos.Cls_Persona;
import java.util.ArrayList;
import java.util.Map;

/**
 *
 * @author Christian
 */
public class Cls_Business_Persona implements Itf_Business_Persona{
    private Itf_Dao_Persona daoPersonaInterface;
    
    public String insertarPersonaNatural(Map<String,Object>parametros){
        parametros.put("fncPostgres", "{?=call fnc0004insertarpersonanatural(?,?,?,?,?)}");
        return this.daoPersonaInterface.insertarPersonaNatural(parametros);
//        return "bien";
    }

    public void setDaoPersonaInterface(Itf_Dao_Persona daoPersonaInterface) {
        this.daoPersonaInterface = daoPersonaInterface;
    }
    
    public ArrayList<Cls_Persona> obtenerTodasPersonas(Map<String,String> parametros){        
        return this.daoPersonaInterface.obtenerTodasPersonas(parametros);
    }   
    
    public int obtenerCantidadTodasPersonas(Map<String,String> parametros){
        return this.daoPersonaInterface.obtenerCantidadTodasPersonas(parametros);
    }
}
